3.3.27 \(\int \frac {1}{a x^2+b x^2} \, dx\)

Optimal. Leaf size=10 \[ -\frac {1}{x (a+b)} \]

________________________________________________________________________________________

Rubi [A]  time = 0.00, antiderivative size = 10, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {6, 12, 30} \begin {gather*} -\frac {1}{x (a+b)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a*x^2 + b*x^2)^(-1),x]

[Out]

-(1/((a + b)*x))

Rule 6

Int[(u_.)*((w_.) + (a_.)*(v_) + (b_.)*(v_))^(p_.), x_Symbol] :> Int[u*((a + b)*v + w)^p, x] /; FreeQ[{a, b}, x
] &&  !FreeQ[v, x]

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rubi steps

\begin {align*} \int \frac {1}{a x^2+b x^2} \, dx &=\int \frac {1}{(a+b) x^2} \, dx\\ &=\frac {\int \frac {1}{x^2} \, dx}{a+b}\\ &=-\frac {1}{(a+b) x}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 10, normalized size = 1.00 \begin {gather*} -\frac {1}{x (a+b)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a*x^2 + b*x^2)^(-1),x]

[Out]

-(1/((a + b)*x))

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{a x^2+b x^2} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[(a*x^2 + b*x^2)^(-1),x]

[Out]

IntegrateAlgebraic[(a*x^2 + b*x^2)^(-1), x]

________________________________________________________________________________________

fricas [A]  time = 0.37, size = 10, normalized size = 1.00 \begin {gather*} -\frac {1}{{\left (a + b\right )} x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(a*x^2+b*x^2),x, algorithm="fricas")

[Out]

-1/((a + b)*x)

________________________________________________________________________________________

giac [A]  time = 0.15, size = 10, normalized size = 1.00 \begin {gather*} -\frac {1}{{\left (a + b\right )} x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(a*x^2+b*x^2),x, algorithm="giac")

[Out]

-1/((a + b)*x)

________________________________________________________________________________________

maple [A]  time = 0.04, size = 11, normalized size = 1.10 \begin {gather*} -\frac {1}{\left (a +b \right ) x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(a*x^2+b*x^2),x)

[Out]

-1/(a+b)/x

________________________________________________________________________________________

maxima [A]  time = 1.36, size = 10, normalized size = 1.00 \begin {gather*} -\frac {1}{{\left (a + b\right )} x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(a*x^2+b*x^2),x, algorithm="maxima")

[Out]

-1/((a + b)*x)

________________________________________________________________________________________

mupad [B]  time = 0.03, size = 10, normalized size = 1.00 \begin {gather*} -\frac {1}{x\,\left (a+b\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(a*x^2 + b*x^2),x)

[Out]

-1/(x*(a + b))

________________________________________________________________________________________

sympy [A]  time = 0.08, size = 7, normalized size = 0.70 \begin {gather*} - \frac {1}{x \left (a + b\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(a*x**2+b*x**2),x)

[Out]

-1/(x*(a + b))

________________________________________________________________________________________